/**
 * @(#)MTCSKH.java.java	1.0  18-07-2014 
 *
 * Copyright 2014 Viettel Telecome. All rights reserved.
 * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.viettel.core.entities.service;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 *  Luu tin MT cham soc khach hang
 *  @author: toantm1
 *  @since: 18-07-2014 - 10:00:38
 */
@Entity
@Table(name = "MT_CSKH")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@SequenceGenerator(name = "SEQ_STORE", sequenceName = "MT_CSKH_LOG_SEQ", allocationSize = 1)
public class MTCSKH implements Serializable {
	/** The id. */
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_STORE")
	@Column(name = "ID", precision=20, scale=0)
	private Long id;
	
	/**
	 * Noi dung sms
	 */
	@Basic
	@Column(name = "CONTENT", length = 480, nullable = false)
	private String content;
	
	/**
	 * Trang thai
	 */
	@Basic
	@Column(name = "STATUS")
	private Byte status;
	
	/**
	 * Thoi gian tao
	 */
	@Basic
	@Column(name = "CREATE_DATE", columnDefinition = "timestamp(6) default systimestamp", insertable = true, updatable = false)
	@Temporal(TemporalType.TIMESTAMP)
	private Date createdDate;
	
	/**
	 * Session id
	 */
	@Basic
	@Column(name = "SESSION_ID", length = 50, nullable = false)
	private String sessionId;

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @return the content
	 */
	public String getContent() {
		return content;
	}

	/**
	 * @return the status
	 */
	public Byte getStatus() {
		return status;
	}

	/**
	 * @return the createdDate
	 */
	public Date getCreatedDate() {
		return createdDate;
	}

	/**
	 * @return the sessionId
	 */
	public String getSessionId() {
		return sessionId;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @param content the content to set
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(Byte status) {
		this.status = status;
	}

	/**
	 * @param createdDate the createdDate to set
	 */
	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	/**
	 * @param sessionId the sessionId to set
	 */
	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}
}
